package com.caishi.lkx.common.util;

import java.util.LinkedList;
import java.util.List;

public class IndexUtil {
    public static <T extends Object> List<List<T>> splitList(List<T> inIds) {
        List<List<T>> split = new LinkedList<>();
        for (var i = 0; i < inIds.size(); i += 1000) {
            split.add(inIds.subList(i, Math.min(inIds.size(), i + 1000)));
        }
        return split;
    }
}
